<template>
   <zero-dialog :showDialog.sync="drawerSync"
               :fullscreen.sync="fullscreen"
               title="日志详情">
      <el-form label-width="120px" slot="body">
        <el-form-item label="内容信息：">
          <json-viewer :value="data" :expand-depth="10" copyable boxed sort></json-viewer>
        </el-form-item>
      </el-form>
  </zero-dialog>
</template>

<script>
export default {
  name: 'Drawer',
  data () {
    return {
      drawerSync: false,
      fullscreen: false,
      browser: '',
      data: ''
    }
  },
  created () {},
  methods: {
    initDrawer (row) {
      this.drawerSync = true
      this.data = JSON.parse(row.data)
    }
  }
}
</script>
<style>
/* 去掉选中时的boder */
:focus {
  outline: 0;
}
.el-drawer {
  overflow: auto;
}
</style>
